// @ts-ignore
/* eslint-disable */
import { request } from '@umijs/max';

/** listDisplayStep GET /displayStep */
export async function listDisplayStepUsingGET(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.listDisplayStepUsingGETParams,
  options?: { [key: string]: any },
) {
  return request<API.BaseResponseListDisplayStepDto_>('/displayStep', {
    method: 'GET',
    params: {
      ...params,
    },
    ...(options || {}),
  });
}

/** editDisplayStep PUT /displayStep */
export async function editDisplayStepUsingPUT(
  body: API.EditDisplayStepQuery,
  options?: { [key: string]: any },
) {
  return request<API.BaseResponseBoolean_>('/displayStep', {
    method: 'PUT',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}

/** addDisplayStep POST /displayStep */
export async function addDisplayStepUsingPOST(
  body: API.AddDisplayStepQuery,
  options?: { [key: string]: any },
) {
  return request<API.BaseResponseBoolean_>('/displayStep', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}

/** deleteDisplayStep DELETE /displayStep */
export async function deleteDisplayStepUsingDELETE(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.deleteDisplayStepUsingDELETEParams,
  options?: { [key: string]: any },
) {
  return request<API.BaseResponseBoolean_>('/displayStep', {
    method: 'DELETE',
    params: {
      ...params,
    },
    ...(options || {}),
  });
}
